package com.hoopchina.ui.search;

// import class

/**
 * SearchRecord
 * 搜索历史记录类
 * 
 * @author Guo Baiyu
 */
public class SearchRecord {
    private String mSearchRecordText = null;
    private int    mIndex            = 0;

    /**
     * 
     * @param searchRecordText
     */
    public SearchRecord( String searchRecordText ) {
        this.mSearchRecordText = searchRecordText;
        this.mIndex = 0;
    }

    /**
     * 
     * @param searchRecordText
     * @param index
     */
    public SearchRecord( String searchRecordText, int index ) {
        super();
        this.mSearchRecordText = searchRecordText;
        this.mIndex = index;
    }

    /**
     * 获得搜索记录的内容
     */
    public String getSearchRecordText() {
        return mSearchRecordText;
    }

    /**
     * 设置搜索记录的内容
     * 
     * @param searchRecordText
     */
    public void setSearchRecordText( String searchRecordText ) {
        this.mSearchRecordText = searchRecordText;
    }

    /**
     * 
     * @return the mIndex
     */
    public int getIndex() {
        return mIndex;
    }

    /**
     * 
     * @param mIndex the mIndex to set
     */
    public void setIndex( int mIndex ) {
        this.mIndex = mIndex;
    }
}
